<table>
{foreach from=$pages key=myId item=i}
{strip}
    <tr><td>
        {$i->getName()}
        </td>
        <td>
        {$i->getSurname()}
        </td>
        <td>
        {$i->getEmail()}
        </td>
        <td>
        {$i->getAge()}
        </td>
    </tr>
{/strip}
{/foreach}
</table>